package com.jianguozh.difs.support.api.ops.dto;

import com.jianguozh.difs.framework.validator.EnumValid;
import com.jianguozh.difs.support.service.constant.enums.OrgEnum;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 批量组织idsdto
 *
 * @author hanrs
 * @email 4076130@qq.com
 * @since 2022/3/31 10:12
 */
@Data
public class OrgsDto {

    /**
     * 组织类型
     */
    @EnumValid(message = "主体不合法", ignoreEmpty = false)
    private OrgEnum org;

    /**
     * 组织id集合
     */
    @NotEmpty(message = "主体id集合不能为空")
    private List<String> orgIds;
}
